ÄúµÄλÖãºÑ°ÃÎÍøÊ×Ò³£¾±à³ÌÀÖÔ°£¾VBScript£¾VBScript


objects constants operators statements functions properties methods






FUNCTION:  CByte( )

You can determine the expression subtype by using the function VarType( ).


CByte(Number)

The CByte function converts any number between 0 and 255 to the variant of subtype Byte.

Code:
<% anynumber=(9.876) %>
<% =CByte(anynumber) %>

Output:
10

Code:
<% anynumber=(255) %>
<% =CByte(anynumber) %>

Output:
255